fn main() {
    //let v: Vec<i32> = Vec::new();
    //let v = vec![1, 2, 3];
    // let mut v = Vec::new();
    // v.push(5);
    // v.push(6);
    // v.push(7);
    // v.push(8);

    let v = vec![1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
    let third = &v[2];
    println!("The third element is {third}");
    let third = v.get(2);
    match third {
        Some(third) => println!("The third element is {third}"),
        None => println!("There is no third element."),
    }
}
